package org.sdp.pearproject.controller;


import org.sdp.pearproject.dto.request.*;
import org.sdp.pearproject.dto.response.*;
import org.sdp.pearproject.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: DepartmentSuperController
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-15
 * @Version: 1.0
 * Table: pear_department
 * Comment:
 * 部门表
 */
public class DepartmentSuperController extends BaseController {
    @Autowired
    DepartmentService service;

    public Integer addDepartment(DepartmentAddRequest request) throws Exception {
        return service.addDepartment(request);
    }

    public Integer updateDepartment(DepartmentUpdateRequest request) throws Exception {
        return service.updateDepartment(request);
    }

    public Integer deleteDepartment(DepartmentDeleteRequest request) throws Exception {
        return service.deleteDepartment(request);
    }

    public DepartmentQueryResponse queryDepartment(DepartmentQueryRequest request) throws Exception {
        return service.queryDepartment(request);
    }

    public List<DepartmentQueryResponse> listDepartment(DepartmentQueryRequest request) throws Exception {
        return service.listDepartment(request);
    }

    public Integer countDepartment(DepartmentQueryRequest request) throws Exception {
        return service.countDepartment(request);
    }

    public BaseStatResponse statDepartment(DepartmentQueryRequest request) throws Exception {
        return service.statDepartment(request);
    }


}
